<template>
	<view class="container">
		<image :src="image" :show-menu-by-longpress="true"></image>
		<view>长按保存二维码</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				image: ''
			};
		},
		onShow() {
			this.$net.req('/user/getOffcialQrcode').then(res=>{
				if(res.code == 200){
					this.image = res.data.qrcode
				}
			})
		}
	}
</script>

<style lang="scss">
	.container{
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: center;
		height: 100vh;
		image{
			width: 360rpx;
			height: 360rpx;
		}
		view{
			margin-top: 60rpx;
			font-size: 48rpx;
		}
	}
</style>
